package com.room.reservation.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.room.common.annotation.Excel;
import com.room.common.core.domain.BaseEntity;

/**
 * 自习室对象 room
 *
 * @author FMBOY
 * @date 2025-10-31
 */
public class Room extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Integer id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String image;

    /**
     * 位置
     */
    @Excel(name = "位置")
    private String location;

    /**
     * 行数
     */
    @Excel(name = "行数")
    private Integer rowsCount;

    /**
     * 列数
     */
    @Excel(name = "列数")
    private Integer colsCount;

    /**
     * 开放时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "开放时间", width = 30, dateFormat = "HH:mm:ss")
    private Date openTime;

    /**
     * 关闭时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "关闭时间", width = 30, dateFormat = "HH:mm:ss")
    private Date closeTime;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setRowsCount(Integer rowsCount) {
        this.rowsCount = rowsCount;
    }

    public Integer getRowsCount() {
        return rowsCount;
    }

    public void setColsCount(Integer colsCount) {
        this.colsCount = colsCount;
    }

    public Integer getColsCount() {
        return colsCount;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("image", getImage()).append("location", getLocation()).append("rowsCount", getRowsCount()).append("colsCount", getColsCount()).append("openTime", getOpenTime()).append("closeTime", getCloseTime()).append("status", getStatus()).toString();
    }
}
